import {
  ChromeFilled,
  CrownFilled,
  SmileFilled,
  TabletFilled,
} from '@ant-design/icons';

export default {
  route: {
    path: '/',
    routes: [
      {
        path: '/welcome',
        name: '欢迎',
        icon: <SmileFilled />,
        component: './Welcome',
      },
      // 商铺
      {
        path: '/index/commerce',
        name: '商业',
        icon: <CrownFilled />,
        access: 'canAdmin',
        component: './Admin',
        routes: [
          {
            path: '/index/commerce',
            name: '楼盘管理',
            // icon: 'https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg',
            component: './Welcome',
            routes: [
              {
                path: '/index/commerce/officehouse',
                name: '写字楼',
                icon: <CrownFilled />,
                component: './Welcome',
                routes: [
                  {
                    path: '/index/commerce/officehouse/salesman',
                    name: '出售管理',
                    icon: <CrownFilled />,
                    component: './Welcome',
                  },
                  {
                    path: '/index/commerce/officehouse/hireman',
                    name: '出租管理',
                    icon: <CrownFilled />,
                    component: './Welcome',
                  },
                ],
              },
              {
                path: '/index/commerce/shop',
                name: '商铺',
                icon: <CrownFilled />,
                component: './Welcome',
                routes: [
                  {
                    path: '/index/commerce/shop/salesage',
                    component: './Welcome',
                    name: '出售管理',
                    icon: <CrownFilled />,
                  },
                  {
                    path: '/index/commerce/shop/hireage',
                    component: './Welcome',
                    name: '出租管理',
                    icon: <CrownFilled />,
                  },
                ],
              },
            ],
          },
        ],
      },
      {
        path: '/index/hire',
        name: '二手/出租',
        icon: <CrownFilled />,
        access: 'canAdmin',
        component: './Admin',
        routes: [
          {
            path: '/index/hire/cmangage',
            name: '二手/出租',
            // icon: 'https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg',
            component: './Welcome',
            routes: [
              {
                path: '/index/hire/cmangage',
                name: '小区管理',
                icon: <CrownFilled />,
                component: './Welcome',
                routes: [
                  {
                    path: '/index/hire/cmangage',
                    name: '小区管理',
                    icon: <CrownFilled />,
                    component: './Welcome',
                  },
                ],
              },
              {
                path: '/index/hire/second',
                name: '二手房',
                icon: <CrownFilled />,
                component: './Welcome',
                routes: [
                  {
                    path: '/index/hire/second/housemanage',
                    component: './Welcome',
                    name: '房源管理',
                    icon: <CrownFilled />,
                  },
                  {
                    path: '/index/hire/second/addhouse',
                    component: './Welcome',
                    name: '添加房源',
                    icon: <CrownFilled />,
                  },
                ],
              },
              {
                path: '/index/hire/hirehouse',
                name: '出租房',
                icon: <CrownFilled />,
                component: './Welcome',
                routes: [
                  {
                    path: '/index/hire/hirehouse/housem',
                    component: './Welcome',
                    name: '房源管理',
                    icon: <CrownFilled />,
                  },
                  {
                    path: '/index/hire/hirehouse/housea',
                    component: './Welcome',
                    name: '添加房源',
                    icon: <CrownFilled />,
                  },
                ],
              },
            ],
          },
        ],
      },
      {
        path: '/index/house',
        name: '楼盘',
        icon: <CrownFilled />,
        access: 'canAdmin',
        component: './Admin',
        routes: [
          {
            path: '/index/house/index',
            name: '楼盘管理',
            // icon: 'https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg',
            component: './Welcome',
            routes: [
              {
                path: '/index/house/index',
                name: '楼盘管理',
                icon: <CrownFilled />,
                component: './Welcome',
                routes: [
                  {
                    path: '/index/house/houselist',
                    name: '楼盘列表',
                    icon: <CrownFilled />,
                    component: './Welcome',
                  },
                  {
                    path: '/index/house/addhouse',
                    name: '添加楼盘',
                    icon: <CrownFilled />,
                    component: './Welcome',
                  },
                ],
              },
              {
                path: '/index/deve',
                name: '开发商',
                icon: <CrownFilled />,
                component: './Welcome',
                routes: [
                  {
                    path: '/index/deve/develist',
                    component: './Welcome',
                    name: '开发商列表',
                    icon: <CrownFilled />,
                  },
                ],
              },
            ],
          },
        ],
      },
      {
        path: '/index/customer',
        name: '客服',
        icon: <CrownFilled />,
        access: 'canAdmin',
        component: './Admin',
        routes: [
          {
            path: 'im',
            component: 'im',
            name: '客服',
            icon: <CrownFilled />,
          },
          {
            path: '/index/customer/index',
            name: '客服信息总览',
            // icon: 'https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg',
            component: './Welcome',
            routes: [
              {
                path: '/index/customer/zonglan',
                name: '客服信息总览',
                icon: <CrownFilled />,
                component: './Welcome',
              },
              {
                path: '/index/customer/customerlist',
                name: '客服列表',
                icon: <CrownFilled />,
                component: './Welcome',
              },
              {
                path: '/index/customer/session',
                name: '会话列表',
                icon: <CrownFilled />,
                component: './Welcome',
                routes: [
                  {
                    path: '/index/customer/session/tourlist',
                    name: '游客列表',
                    icon: <CrownFilled />,
                    component: './Welcome',
                  },
                  {
                    path: '/index/customer/session/server',
                    name: '服务记录',
                    icon: <CrownFilled />,
                    component: './Welcome',
                  },
                  {
                    path: '/index/customer/session/chart',
                    name: '聊天记录',
                    icon: <CrownFilled />,
                    component: './Welcome',
                  },
                ],
              },
            ],
          },
        ],
      },
    ],
  },
  location: {
    pathname: '/',
  },
};
